
package bmoofxbridge.model;

import java.util.Comparator;

/**
 * @author leonidr
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class TransactionDateComparator implements Comparator {

    /* (non-Javadoc)
     * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
     */
    public int compare(Object arg0, Object arg1) {
        Transaction t0 = (Transaction) arg0;
        Transaction t1 = (Transaction) arg1;
        return t0.getDate().compareTo(t1.getDate());
    }

}
